<?php
if(!isset($headTitle)) $headTitle = 'HeadTitle';
if(!isset($headCss)) $headCss = '';
if(!isset($headInnerCss)) $headInnerCss = '';
if(!isset($headJS)) $headJS = '';
if(!isset($headJS_main)) $headJS_main = '';
if(!isset($curPageLink)) $curPageLink = ' ';//это не должна быть пустая строка, иначе автоматически будет отмечаться главная страница
$adminJS = '<script type="text/javascript" src="' . W_JS . 'ui/jquery.ui.core.js"></script>
						<script type="text/javascript" src="' . W_JS . 'ui/jquery.ui.widget.js"></script>
						<script type="text/javascript" src="' . W_JS . 'ui/jquery.ui.mouse.js"></script>
						<script type="text/javascript" src="' . W_JS . 'ui/jquery.ui.sortable.js"></script>
		
						<script type="text/javascript">
						$(function() {
							$("#sortable").sortable({
								stop: function (event, ui) {
					        var order = $("#sortable").sortable(\'toArray\');
									$.post(W_AJAX + "pages/sort.php", {order: order}, \'\', \'json\');
					    }

							});
							$("#sortable").disableSelection();
						});
						</script>';

//Параметры
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title><?php echo $headTitle; ?></title>
  
  <meta http-equiv="Content-Language" content="ru" />
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta name="author" content="boberstroi" />
  <link rel="stylesheet" type="text/css" href="<?php echo W_CSS?>main.css" />
  <link rel="stylesheet" type="text/css" href="<?php echo W_CSS?>thickbox.css" />
  <link rel="stylesheet" type="text/css" href="<?php echo W_JS?>jquery.sliderkit-1.5.1/css/sliderkit-core.css" />
  <link rel="stylesheet" type="text/css" href="<?php echo W_JS?>jquery.sliderkit-1.5.1/css/sliderkit-demos.css" />
  <!--[if lt IE 7]><link rel="stylesheet" type="text/css" href="<?php echo W_CSS?>ie6.css" media="screen"/><![endif]-->
  <!--[if IE]><link rel="stylesheet" type="text/css" href="<?php echo W_CSS?>all_ie.css" media="screen"/><![endif]-->
  <?php echo $headCss;?>
  <?php echo $headInnerCss;?>
  <script type="text/javascript" src="<?php echo W_JS?>main.js"></script>
  <script type="text/javascript" src="<?php echo W_JS?>config.js"></script>
  <script type="text/javascript" src="<?php echo W_JS?>jquery-1.4.2.js"></script>

	<script type="text/javascript" src="<?php echo W_JS?>jquery.sliderkit-1.5.1/js/jquery.sliderkit.1.5.1.js"></script>
	<!--<script type="text/javascript" src="<?php echo W_JS?>jquery.sliderkit-1.5.1/js/jquery.sliderkit.1.5.1.pack.js"></script>-->
	<script type="text/javascript" src="<?php echo W_JS?>jquery.sliderkit-1.5.1/js/jquery.easing.1.3.min.js"></script>
	<script type="text/javascript" src="<?php echo W_JS?>jquery.sliderkit-1.5.1/js/jquery.mousewheel.min.js"></script>
	
	<script type="text/javascript">
			jQuery(window).load(function(){				
				// Photo gallery > Minimalistic
				jQuery(".photosgallery-minimalistic").sliderkit({
					shownavitems:6,
					circular:true,
					navitemshover:true,
					navscrollatend:true,
					panelfxspeed: 1000,
					panelbtnshover:true,
					auto:false
				});
				
			});	
		</script>
  <!--<script type="text/javascript" src="<?php echo W_JS?>thickbox.js"></script>-->
  <?php if ($objSession->isLoggedIn()) echo $adminJS;?>
  <?php echo $headJS_main;?>
  <?php echo $headJS;?>
</head>
<body>
<noscript><div id="turn-on-js">&nbsp;Включите JavaScript!&nbsp;</div></noscript>
<div id="page">